//
//  NSString+Common.h
//  Coding_My
//
//  Created by showXxie on 2017/8/21.
//  Copyright © 2017年 sooxie. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CommonCrypto/CommonDigest.h>

@interface NSString (Common)
- (NSString*) sha1Str;
- (CGFloat)getWidthWithFont:(UIFont *)font constrainedToSize:(CGSize)size;
- (CGSize)getSizeWithFont:(UIFont *)font constrainedToSize:(CGSize)size;
- (CGFloat)getHeightWithFont:(UIFont *)font constrainedToSize:(CGSize)size;

- (NSRange)rangeByTrimmingRightCharactersInSet:(NSCharacterSet *)characterSet;
- (NSString *)trimWhitespace;

- (NSURL *)urlImageWithCodePathResizeToView:(UIView *)view;
- (NSURL *)urlImageWithCodePathResize:(CGFloat)width;
- (NSString *)md5Str;

@end
